'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  //登录
  router.post('/login', controller.login.login)
  //获取用户信息
  router.get('/getUserInfo', controller.login.getUserInfo)
  //注册
  router.post('/sigin', controller.login.SigIn)
};
